<template>
	<view class="">
		<image src="https://ykp-new.oss-cn-hangzhou.aliyuncs.com/newPicter/singuoSuccess.png" mode=""></image>
		<view class="result">
			<span>报名成功</span>
			<view class="jiesi">
				您好！提交的订单报名成功
			</view>
		</view>
		<view class="bot">
			<view class="return_order" @tap="toregister">
				查看报名
			</view>
			<view class=" return_homepage" @tap="tohome">
				返回首页
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data () {
			return {
				
			}
		},
		methods: {
			tohome () {
				// uni.switchTab({
				// 	url:'/pages/index/index'
				// })
				uni.reLaunch({
					url:'/pages/index/index'
				})
			},
			toregister () {
				// uni.redirectTo({
				// 	url:'/pageC/mine/register'
				// })
				uni.reLaunch({
					url:'/pageC/mine/register?state='+'0'
				})
			}
		}
	}
</script>

<style>
	page {
		background-color: #FFFFFF;
	}
</style>
<style lang="less" scoped>
	page {
		overflow: hidden;
	}
	image {
		display: block;
		width: 160upx;
		height: 160upx;
		margin: 0 auto;
		margin-top: 100upx;
		margin-bottom: 30upx;
	}
	.result {
		text-align: center;
		span {
			font-size: 32upx;
			color: #343434;
			font-weight: bold;
		}
		.jiesi {
			margin-top: 30upx;
			margin-bottom: 90upx;
			color: #333333;
			font-size: 28upx;
		}
	}
	.bot {
		display: flex;
		justify-content: center;
		
		.return_order {
			width: 260upx;
			height: 74upx;
			color: #333;
			border: 2upx solid #e1e1e1;
			font-size: 32upx;
			text-align: center;
			line-height: 70upx;
			border-radius: 37upx;
			margin-right: 20upx;
		}
		.return_homepage {
			width: 260upx;
			height: 74upx;
			color: #FFFFFF;
			background-color: #8838d2;
			font-size: 32upx;
			text-align: center;
			line-height: 70upx;
			border-radius: 37upx;
		}
	}
</style>
